package com.example.selfcontrol.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class StarOpt {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private int articleId ;

    private int state ;

    private int starUser ;

    private Date createTime ;

    private Date updateTime ;
    public StarOpt(Integer id, int articleId, int state, int starUser, Date createTime, Date updateTime) {
        this.id = id;
        this.articleId = articleId;
        this.state = state;
        this.starUser = starUser;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
